package com.lock.lockblog.service.impl;

import com.lock.lockblog.mapper.AdminsMapper;
import com.lock.lockblog.model.Admins;
import com.lock.lockblog.service.AdminsService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class AdminsServiceImpl extends BaseService<Admins> implements AdminsService {
	
	@Autowired
	private AdminsMapper mapper;
	
	//记录错误信息
	Logger log = Logger.getLogger(getClass());

	/**
	 * //查询当前登录账户是否存在  Lock-玄清 
	 */
	@Override
	public Admins findexist(String name, String pwd) {
		try {
			return mapper.findexist(name, pwd);
		} catch (Exception e) {
			log.error("查询当前登录账户是否存在  Lock-玄清   出错！",e);
			return null;
		}
	}
	
}
